.class public Lrexsee/sensor/SensorRate;
.super Ljava/lang/Object;
.source "SensorRate.java"


# static fields
.field public static final RATE_FASTEST:Ljava/lang/String; = "fastest"

.field public static final RATE_GAME:Ljava/lang/String; = "game"

.field public static final RATE_NORMAL:Ljava/lang/String; = "normal"

.field public static final RATE_UI:Ljava/lang/String; = "ui"


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 5
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static getInt(Ljava/lang/String;)I
    .locals 1
    .param p0, "rate"    # Ljava/lang/String;

    .prologue
    .line 13
    invoke-virtual {p0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object p0

    .line 14
    const-string v0, "fastest"

    invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    .line 17
    :goto_0
    return v0

    .line 15
    :cond_0
    const-string v0, "game"

    invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    const/4 v0, 0x1

    goto :goto_0

    .line 16
    :cond_1
    const-string v0, "ui"

    invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    const/4 v0, 0x2

    goto :goto_0

    .line 17
    :cond_2
    const/4 v0, 0x3

    goto :goto_0
.end method

.method public static getString(I)Ljava/lang/String;
    .locals 1
    .param p0, "rate"    # I

    .prologue
    .line 20
    packed-switch p0, :pswitch_data_0

    .line 28
    const-string v0, "normal"

    :goto_0
    return-object v0

    .line 22
    :pswitch_0
    const-string v0, "fastest"

    goto :goto_0

    .line 24
    :pswitch_1
    const-string v0, "game"

    goto :goto_0

    .line 26
    :pswitch_2
    const-string v0, "ui"

    goto :goto_0

    .line 20
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method
